package com.neusoft.neuiotms.dcam.fixed.service;

import java.util.List;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.dcam.fixed.dto.ProductDTO;
import com.neusoft.neuiotms.dcam.fixed.model.AssetType;

public interface ProductService {

    ProductDTO create(ProductDTO dto);

    void delete(Long id);

    ProductDTO update(Long id, ProductDTO dto);

    List<ProductDTO> index(Searchable searchable);

    ProductDTO details(Long id);

    Page<ProductDTO> search(Pageable pageable, Searchable searchable);

    List<ProductDTO> findByAssetType(AssetType assettype);

    Workbook template();

    String upload(MultipartFile file);
}
